import request from './request.js';

import $store from '@/store/index.js';
export default{
	getList(data) {
	  return request({
	    url: 'ddchat/friend/getList',
	    method: 'POST',
	    data,
		header:{
			'content-type': 'application/json',
			'token': $store.state.token
		}
	  });
	},
	edit(data) {
	  return request({
	    url: 'ddchat/friend/edit',
	    method: 'POST',
	    data,
		header:{
			'content-type': 'application/json',
			'token': $store.state.token
		}
	  });
	}
}
